<!DOCTYPE html>
<html>
<head>
	<title>强制收车</title>
	<link rel="stylesheet" type="text/css" href="../../statics/css/public/flowChart.css">
	<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






</head>
<body class="ren-body">
<div id="rrapp" v-cloak>
	<form  class="layui-form ren-form" id="collectForm">
		<div class="form-content-box">
			<div class="list-search-sup-title new-layui-title border-bottom-dashed" style="margin-top: -50px;">
				收车信息
			</div>
			<div class="form-content-session-box" >
				<div class="card">
					<div class="layui-row layui-form-row-content">
						<div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
							<label class="layui-form-label">车牌号:</label>
							<div class="layui-input-inline">
								<input :value="collectInfo.carPlateNo || '--'"
									   type="text"
									   class="layui-input searchVal"
									   readonly />
							</div>
						</div>
						<div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
							<label class="layui-form-label">品牌/车系/车型:</label>
							<div class="layui-input-inline">
								<input :value="collectInfo.modelName || '--'"
									   type="text"
									   class="layui-input searchVal"
									   readonly />
							</div>
						</div>
						<div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
							<label class="layui-form-label">当前订单号:</label>
							<div class="layui-input-inline">
								<input :value="collectInfo.orderNo || '--'"
									   type="text"
									   class="layui-input searchVal"
									   readonly />
							</div>
						</div>
						<div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
							<label class="layui-form-label">当前业务类型:</label>
							<div class="layui-input-inline">
								<input :value="collectInfo.bizObjTypeStr || '--'"
									   type="text"
									   class="layui-input searchVal"
									   readonly />
							</div>
						</div>
						<div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
							<label class="layui-form-label">租期:</label>
							<div class="layui-input-inline">
								<input :value="collectInfo.tenancy || '--'"
									   type="text"
									   class="layui-input searchVal"
									   readonly />
							</div>
						</div>
						<div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
							<label class="layui-form-label">当前客户名称:</label>
							<div class="layui-input-inline">
								<input :value="collectInfo.customerName || '--'"
									   type="text"
									   class="layui-input searchVal"
									   readonly />
							</div>
						</div>
						<div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
							<label class="layui-form-label">当前客户联系电话:</label>
							<div class="layui-input-inline">
								<input :value="collectInfo.customerPhone || '&#45;&#45;'"
									   type="text"
									   class="layui-input searchVal"
									   readonly />
							</div>
						</div>
						<div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
							<label class="layui-form-label">收车时间<span style="color:red">*</span>:</label>
							<div class="layui-input-inline">
								<input type="text" v-model="collectInfo.collectTime" readonly :disabled="viewTag != 'edit' && viewTag != 'reedit' && viewTag != 'add'"
									   id="collectTime" lay-verify="collectTime"
									   readonly autocomplete="off" class="layui-input">
							</div>
						</div>
						<div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
							<label class="layui-form-label">选择收车处理人<span style="color:red">*</span>:</label>
							<div class="layui-input-inline" >
								<select  :disabled="viewTag != 'edit' && viewTag != 'reedit' && viewTag != 'add'" name="handlerId" v-model="collectInfo.handlerId" lay-filter="handlerId" lay-verify="handlerId">
									<option value="">请选择收车处理人</option>
									<option v-for="(item,index) in userList" :value="item.userId">{{item.username}}</option>
								</select>
							</div>
						</div>
						<div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
							<label class="layui-form-label">收车原因<span style="color:red">*</span>:</label>
							<div class="layui-input-inline">
								<textarea v-model="collectInfo.collectReasonName"
										  type="text"
										  :readonly="viewTag != 'edit' && viewTag != 'reedit' && viewTag != 'add'"
										  class="layui-textarea searchVal"
										  maxlength="200" placeholder="请输入收车原因" lay-verify="collectReasonName"></textarea>
							</div>
						</div>
						<div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12" >
							<label class="layui-form-label" >收车附件:</label>
							<div class="layui-input-inline" id="collectFileListId">
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="form-content-box" v-show="openFlow">
				<div class="list-search-sup-title new-layui-title border-bottom-dashed">
					强制收车流程
				</div>
				<div class="car-details-info car-padding">
					<div class="car-flowChart">
						<div class="car-flowChart-circle" v-for="(item, index) in bpmChartDtoList" :key="item.index">
							<div class="car-flowChart-images">
								<img class="car-flowChart-icon" v-if="item.approveStatus != 2" src="../../statics/images/point2.png" alt="">
								<img class="car-flowChart-line" v-if="item.approveStatus != 2 && index != bpmChartDtoList.length-1" src="../../statics/images/line3.png" alt="">
								<img class="car-flowChart-icon" v-if="item.approveStatus == 2" src="../../statics/images/point.png" alt="">
								<img class="car-flowChart-line" v-if="item.approveStatus == 2 && index != bpmChartDtoList.length-1" src="../../statics/images/line4.png" alt="">
							</div>
							<div class="car-flowChart-content">
								<div class="car-flowChart-status">
									<p class="car-flowChart-title">{{item.userName}}-{{item.nodeName}}</p>
									<p class="car-flowChart-text">{{item.approveTime}}</p>
									<a v-if="item.approveFileList.length >0 " class="layui-btn" @click="getFileData(item.approveFileList)">查看附件</a>
								</div>
								<div class="car-flowChart-status-feedback">
									<p class="car-flowChart-title car-flowChar-color">{{item.approveNodeStatus}}</p>
									<p class="car-flowChart-text" v-if="item.elapsedTime != null && item.elapsedTime != ''">耗时:{{item.elapsedTime}}</p>
								</div>
								<div class="car-flowChart-status" v-if="item.approveContent != null && item.approveContent != ''">
									<p class="car-flowChart-title">审核意见:{{item.approveContent}}</p>
									<p class="car-flowChart-text"></p>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="float-btn-group bottom-bar">
				<a class="layui-btn reset-btn" @click="cancel">取消</a>
				<a class="layui-btn search-btn" v-show="viewTag == 'edit' || viewTag == 'reedit' || viewTag == 'add'" lay-submit lay-filter="saveCollect">保存</a>
				<a v-show="viewTag == 'approve'" class="layui-btn search-btn" @click="reject">审核驳回</a>
				<a v-show="viewTag == 'approve'" class="layui-btn search-btn" @click="approve">审核通过</a>
				<a v-show="viewTag == 'applyDetail' && instanceStatus == 6 && nodeType == 1" class="layui-btn search-btn" @click="reedit">重新编辑</a>
			</div>
		</div>
	</form>

	<form class="layui-form ren-form" v-show="boxShow" id="boxShow">
		<div class="details-conteiner">
			<div class="details-content-box">
				<div class="form-content-session-box" :style="boxInputShow?'':'text-align: center;'">
					<PRE>{{boxMark}}</PRE>
					<br/>
					<div class="card" v-show="boxInputShow">
						<textarea style="min-width: 400px;min-height: 90px;max-width: 400px;max-height: 120px" type="text" v-model="boxTxt" autocomplete="off" :placeholder="boxHolder" class="layui-input"></textarea>
					</div>
				</div>
			</div>
			<div class="details-content-box">
				<div class="form-content-session-box">
					<label class="layui-form-label">审批附件:</label>
					<div class="layui-input-inline">
						<div class="layui-input-inline-upload">
							<div :id="fileLstId2" class="layui-input-inline-upload-show box-rect" v-for="(item,index) in fileLst2">
								<div v-show="item.typeFile == 1" class="layui-input-inline-upload-button">
									<img :src="imageURL + item.url" class="view-img">
								</div>
								<div v-show="item.typeFile != 1" class="layui-input-inline-upload-button">
									{{item.nameAccessory}}
								</div>
								<div class="layui-input-inline-upload-show-delete btn-event" @click="delFile2(item.id)">
									删除
								</div>
							</div>
							<div class="layui-input-inline-upload-button box-rect box-rect-event" id="addFile2">
								<img src="../../statics/images/inline-upload@2x.png">
							</div>
						</div>
						<div class="layui-input-inline-upload-text" style="padding-bottom: 10px">附件说明：附件最大支持50M，
							<br/>
							支持格式：PDF、Word、Excel、JPG、PNG、ZIP、RAR
						</div>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>
<script src="../../statics/js/modules/car/collect.js"></script>
</body>
</html>